import axios from '@/utils/request'
import store from '@/store'

// 获取用户
export const userChannel = () => axios({
  url: '/v1_0/user/channels',
  Headers: {
    Authorization: 'Bearer ' + store.state.token
  }
})
// 获取列表
export const getArticalList = params => axios({
  url: '/v1_1/articles',
  params
})
// 文章不感兴趣
export const dislike = data => axios({
  url: '/v1_0/article/dislikes',
  method: 'POST',
  data
})

// 文章举报
export const reports = data => axios({
  url: '/v1_0/article/reports',
  method: 'POST',
  data
})
